<template>
  <view
    class="line-item"
    :style="{
      transform: isOutPut ? 'rotate(0deg)' : 'rotate(180deg)',
    }"
  >
    <view class="line-item__inner">
      <image
        src="/static/trans-arrow.gif"
        mode="aspectFill"
        v-if="isFlowNum !== 0"
      />
      <image v-else src="/static/static-trans-arrow-new.png" mode="aspectFill" />
    </view>
  </view>
</template>

<script setup>
const props = defineProps({
  isOutPut: {
    type: Boolean,
    default: true,
  },
  isFlowNum: {
    type: Number,
    default: 0,
  },
});
</script>

<style lang="scss" scoped>
.cursor-arrows-img {
  width: 66rpx;
  height: 18rpx;
}

.line-item {
  height: 18rpx;
  width: 66rpx;
  // min-width: 66rpx;
  // width: 100%;

  overflow: hidden;
  position: relative;
  &__inner {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    @include flex(row);
    align-items: center;
    image {
      flex: none;
      width: 100%;
      height: 100%;
      &:not(:last-child) {
        margin-right: 6rpx;
      }
    }
  }
}
</style>
